'use strict';
var fs =require('fs');
var rs = fs.createReadStream('sam.png');
var ws = fs.createWriteStream('copied.png');

rs.pipe(ws);